package com.groot.medical.service;

import java.util.List;

import com.groot.medical.dao.ChronicExpenseDAO;
import com.groot.medical.dao.ChronicExpenseDAOImpl;
import com.groot.medical.entity.ChronicExpense;
import com.groot.medical.entity.PersonalFiles;

public class ChronicExpenseServiceImpl implements ChronicExpenseService {
	private ChronicExpenseDAO chronicExpenseDAO = new ChronicExpenseDAOImpl();

	@Override
	public double findAlreadyExpenseMoeny(String idcardNumber, String nowTime) {
		// TODO Auto-generated method stub
		return chronicExpenseDAO.findAlreadyExpenseMoeny(idcardNumber,nowTime);
	}

	@Override
	public void defineExpenseMoney(ChronicExpense expense) {
		chronicExpenseDAO.defineExpenseMoney(expense);
		
	}

	@Override
	public int passExpense(String id) {
		int flag=chronicExpenseDAO.passExpense(id);
		return flag;
	}

	@Override
	public int RemittanceExpense(String id) {
		int flag=chronicExpenseDAO.RemittanceExpense(id);
		return flag;
	}

	@Override
	public List<PersonalFiles> findPersonByIdCardNum(String idCardNum) {
		List<PersonalFiles> persons=chronicExpenseDAO.findPersonByIdCardNum(idCardNum);
		return persons;
	}

	

}
